package com.neusoft.ecommerce.entity;
/**
 * 
 * @author Alouette~
 *
 */

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Stock extends AbstractToString{
	private Integer stockNo;
	//外键
	
	private Goods goods;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date stockTime;
	private Integer stockAmount;
	private Double stockPrice;
	private String handler;
	private String stockRemark;
	public Stock() {
		super();
	}
	public Stock(Integer stockNo, Goods goods, Date stockTime, Integer stockAmount, Double stockPrice, String handler,
			String stockRemark) {
		super();
		this.stockNo = stockNo;
		this.goods = goods;
		this.stockTime = stockTime;
		this.stockAmount = stockAmount;
		this.stockPrice = stockPrice;
		this.handler = handler;
		this.stockRemark = stockRemark;
	}
	/**
	 * @return the stockNo
	 */
	public Integer getStockNo() {
		return stockNo;
	}
	/**
	 * @param stockNo the stockNo to set
	 */
	public void setStockNo(Integer stockNo) {
		this.stockNo = stockNo;
	}
	/**
	 * @return the goods
	 */
	public Goods getGoods() {
		return goods;
	}
	/**
	 * @param goods the goods to set
	 */
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	/**
	 * @return the stockTime
	 */
	public Date getStockTime() {
		return stockTime;
	}
	/**
	 * @param stockTime the stockTime to set
	 */
	public void setStockTime(Date stockTime) {
		this.stockTime = stockTime;
	}
	/**
	 * @return the stockAmount
	 */
	public Integer getStockAmount() {
		return stockAmount;
	}
	/**
	 * @param stockAmount the stockAmount to set
	 */
	public void setStockAmount(Integer stockAmount) {
		this.stockAmount = stockAmount;
	}
	/**
	 * @return the stockPrice
	 */
	public Double getStockPrice() {
		return stockPrice;
	}
	/**
	 * @param stockPrice the stockPrice to set
	 */
	public void setStockPrice(Double stockPrice) {
		this.stockPrice = stockPrice;
	}
	/**
	 * @return the handler
	 */
	public String getHandler() {
		return handler;
	}
	/**
	 * @param handler the handler to set
	 */
	public void setHandler(String handler) {
		this.handler = handler;
	}
	/**
	 * @return the stockRemark
	 */
	public String getStockRemark() {
		return stockRemark;
	}
	/**
	 * @param stockRemark the stockRemark to set
	 */
	public void setStockRemark(String stockRemark) {
		this.stockRemark = stockRemark;
	}
	
}
